


let weapon = [
    {
        name: "gunRifleT3SniperRifle",
        base: 53,
        ammo: 57,
        tierDmg:.25,
        modDmg:.4,
        random: [-.02,.02]
    },
    {
        name: "gunShotgunT3AutoShotgun",
        base: 10,
        ammo: 10.1,
        tierDmg:.25,
        modDmg:.4,
        random: [-.02,.02]
    },
    {
        name: "gunMGT3M60",
        base: 23,
        ammo: 57, // 57
        tierDmg:.25,
        modDmg:.4,
        random: [-.02,.02]
    },
    {
        name: "MG3_yin",
        base: 25,
        ammo: 57, // 57
        tierDmg:1,
        modDmg:.6,
        random: [-.15,.15]
    },
    {
        name: "m98b",
        base: 70,
        ammo: 57, // 57
        tierDmg:1,
        modDmg:.6,
        random: [-.15,.15]
    },
    {
        name: "m4_rose",
        base: 25,
        ammo: 57, // 57
        tierDmg:1.2,
        modDmg:.9,
        random: [-.15,.15]
    },
    {
        name: "gunHandgunT3DesertVulture",
        base: 20,
        ammo: 84,  // 84
        tierDmg:.25,
        modDmg:.4,
        random: [-.02,.02]
    }
]



weapon.forEach(w => {
    let base = w.base +( w.ammo || 0)
    let dmg = w.tierDmg + w.modDmg

    let disp_max = (base * (1 + dmg + w.random[1])).toFixed(2) - 0
    let disp_min = (base * (1 + dmg + w.random[0])).toFixed(2) - 0

    console.log(w.name + ": " + disp_min + " ~ " + disp_max);
})